package com.taoxi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;

/**
 * 订单详情对象 order_item
 * 
 * @author ruoyi
 * @date 2024-10-15
 */
public class OrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品详细id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodId;

    /** skuID */
    @Excel(name = "skuID")
    private Long skuId;

    /** categoryID */
    @Excel(name = "categoryID")
    private Long categoryId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long ordernum;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodname;

    /** 颜色 */
    @Excel(name = "颜色")
    private String colour;

    /** 尺码 */
    @Excel(name = "尺码")
    private Long size;

    /** 分类名 */
    @Excel(name = "分类名")
    private String categoryname;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long count;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 商品图片路径 */
    @Excel(name = "商品图片路径")
    private String imageUrl;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String discription;

    /** 商品状态 */
    @Excel(name = "商品状态")
    private String status;

    /** 物流信息 */
    @Excel(name = "物流信息")
    private String logistics;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 地址id */
    @Excel(name = "地址id")
    private Long logisticsId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrdernum(Long ordernum) 
    {
        this.ordernum = ordernum;
    }

    public Long getOrdernum() 
    {
        return ordernum;
    }
    public void setGoodname(String goodname) 
    {
        this.goodname = goodname;
    }

    public String getGoodname() 
    {
        return goodname;
    }
    public void setColour(String colour) 
    {
        this.colour = colour;
    }

    public String getColour() 
    {
        return colour;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setCategoryname(String categoryname) 
    {
        this.categoryname = categoryname;
    }

    public String getCategoryname() 
    {
        return categoryname;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setDiscription(String discription) 
    {
        this.discription = discription;
    }

    public String getDiscription() 
    {
        return discription;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setLogistics(String logistics) 
    {
        this.logistics = logistics;
    }

    public String getLogistics() 
    {
        return logistics;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setLogisticsId(Long logisticsId) 
    {
        this.logisticsId = logisticsId;
    }

    public Long getLogisticsId() 
    {
        return logisticsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodId", getGoodId())
            .append("skuId", getSkuId())
            .append("categoryId", getCategoryId())
            .append("orderId", getOrderId())
            .append("ordernum", getOrdernum())
            .append("goodname", getGoodname())
            .append("colour", getColour())
            .append("size", getSize())
            .append("categoryname", getCategoryname())
            .append("count", getCount())
            .append("price", getPrice())
            .append("imageUrl", getImageUrl())
            .append("discription", getDiscription())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("logistics", getLogistics())
            .append("payTime", getPayTime())
            .append("createTime", getCreateTime())
            .append("logisticsId", getLogisticsId())
            .toString();
    }
}
